package com.example.anday3.pojo;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class GoodsResData{

    @SerializedName("state")
    private Integer state;
    @SerializedName("msg")
    private String msg;
    @SerializedName("total")
    private Integer total;
    @SerializedName("list")
    private List<ListGoods> list;

    public static GoodsResData objectFromData(String str) {

        return new Gson().fromJson(str, GoodsResData.class);
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<ListGoods> getList() {
        return list;
    }

    public void setList(List<ListGoods> list) {
        this.list = list;
    }

    public static class ListGoods {
        @SerializedName("tags")
        private String tags;
        @SerializedName("cate_id")
        private Integer cateId;
        @SerializedName("goods_id")
        private Integer goodsId;
        @SerializedName("goods_name")
        private String goodsName;
        @SerializedName("goods_name_style")
        private String goodsNameStyle;
        @SerializedName("goods_number")
        private Integer goodsNumber;
        @SerializedName("goods_img")
        private String goodsImg;
        @SerializedName("goods_imgs")
        private String goodsImgs;
        @SerializedName("market_price")
        private Double marketPrice;
        @SerializedName("shop_price")
        private Double shopPrice;
        @SerializedName("is_delete")
        private Integer isDelete;
        @SerializedName("is_best")
        private Integer isBest;
        @SerializedName("is_new")
        private Integer isNew;
        @SerializedName("is_hot")
        private Integer isHot;
        @SerializedName("is_sell")
        private Integer isSell;
        @SerializedName("created_at")
        private String createdAt;
        @SerializedName("updated_at")
        private String updatedAt;
        @SerializedName("total_sell")
        private Integer totalSell;
        @SerializedName("info")
        private String info;
        @SerializedName("choose_state")
        private Integer chooseState;
        @SerializedName("latitude")
        private Integer latitude;
        @SerializedName("longitude")
        private Integer longitude;
        @SerializedName("goods_imgs2")
        private List<String> goodsImgs2;

        public static ListGoods objectFromData(String str) {

            return new Gson().fromJson(str, ListGoods.class);
        }

        public String getTags() {
            return tags;
        }

        public void setTags(String tags) {
            this.tags = tags;
        }

        public Integer getCateId() {
            return cateId;
        }

        public void setCateId(Integer cateId) {
            this.cateId = cateId;
        }

        public Integer getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(Integer goodsId) {
            this.goodsId = goodsId;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public String getGoodsNameStyle() {
            return goodsNameStyle;
        }

        public void setGoodsNameStyle(String goodsNameStyle) {
            this.goodsNameStyle = goodsNameStyle;
        }

        public Integer getGoodsNumber() {
            return goodsNumber;
        }

        public void setGoodsNumber(Integer goodsNumber) {
            this.goodsNumber = goodsNumber;
        }

        public String getGoodsImg() {
            return goodsImg;
        }

        public void setGoodsImg(String goodsImg) {
            this.goodsImg = goodsImg;
        }

        public String getGoodsImgs() {
            return goodsImgs;
        }

        public void setGoodsImgs(String goodsImgs) {
            this.goodsImgs = goodsImgs;
        }

        public Double getMarketPrice() {
            return marketPrice;
        }

        public void setMarketPrice(Double marketPrice) {
            this.marketPrice = marketPrice;
        }

        public Double getShopPrice() {
            return shopPrice;
        }

        public void setShopPrice(Double shopPrice) {
            this.shopPrice = shopPrice;
        }

        public Integer getIsDelete() {
            return isDelete;
        }

        public void setIsDelete(Integer isDelete) {
            this.isDelete = isDelete;
        }

        public Integer getIsBest() {
            return isBest;
        }

        public void setIsBest(Integer isBest) {
            this.isBest = isBest;
        }

        public Integer getIsNew() {
            return isNew;
        }

        public void setIsNew(Integer isNew) {
            this.isNew = isNew;
        }

        public Integer getIsHot() {
            return isHot;
        }

        public void setIsHot(Integer isHot) {
            this.isHot = isHot;
        }

        public Integer getIsSell() {
            return isSell;
        }

        public void setIsSell(Integer isSell) {
            this.isSell = isSell;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getUpdatedAt() {
            return updatedAt;
        }

        public void setUpdatedAt(String updatedAt) {
            this.updatedAt = updatedAt;
        }

        public Integer getTotalSell() {
            return totalSell;
        }

        public void setTotalSell(Integer totalSell) {
            this.totalSell = totalSell;
        }

        public String getInfo() {
            return info;
        }

        public void setInfo(String info) {
            this.info = info;
        }

        public Integer getChooseState() {
            return chooseState;
        }

        public void setChooseState(Integer chooseState) {
            this.chooseState = chooseState;
        }

        public Integer getLatitude() {
            return latitude;
        }

        public void setLatitude(Integer latitude) {
            this.latitude = latitude;
        }

        public Integer getLongitude() {
            return longitude;
        }

        public void setLongitude(Integer longitude) {
            this.longitude = longitude;
        }

        public List<String> getGoodsImgs2() {
            return goodsImgs2;
        }

        public void setGoodsImgs2(List<String> goodsImgs2) {
            this.goodsImgs2 = goodsImgs2;
        }
    }
}